package com.example.wastes.message.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.wastes.common.pojo.Message;
import com.example.wastes.message.mapper.MessageMapper;
import com.example.wastes.message.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageServiceImpl extends ServiceImpl<MessageMapper, Message> implements MessageService {
    @Autowired
    private MessageMapper messageMapper;
    @Override
    public List<Message> findMessageMerge(Integer id) {
        return messageMapper.findMessageMerge(id);
    }

    @Override
    public List<Message> findMessageMerge1(Integer userid) {
        return messageMapper.findMessageMerge1(userid);
    }

    @Override
    public List<Message> findMessageName(String phones) {
        return messageMapper.findMessageName(phones);
    }
}
